package com.alibaba.ai.service.impl;

import com.alibaba.ai.dao.TrendMapper;
import com.alibaba.ai.service.TrendService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TrendServiceImpl implements TrendService {
    @Resource
    private TrendMapper trendMapper;

    @Transactional
    @Override
    public List<JSONObject> getTrend() {
        return trendMapper.getTrend();
    }
}
